package com.joysuch.wwyt.workflow.bean;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.joysuch.wwyt.core.bean.BaseAttachmentBean;
import com.joysuch.wwyt.workflow.entity.WorkFlowTask;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @Author ZhangDong
 * @Date 2020/11/4 16:07
 */
@Data
public class WorkFlowLocationConfigBean<WorkFlowScreenConfigBean, WorkFlowRailAlarmConfigBean> implements Serializable {

    @ApiModelProperty("主键ID-修改时传值")
    private Long id;
    @ApiModelProperty("流程节点ID")
    @NotNull(message = "processId 不能为空")
    private Long processId;
    @ApiModelProperty("定位方式")
    @NotEmpty(message = "定位方式不能为空")
    private String locationWay;
    @ApiModelProperty("标记方式")
    @NotEmpty(message = "标记方式不能为空")
    private String markWay;
    @ApiModelProperty("组件名称")
    @NotEmpty(message = "组件名称不能为空")
    private String componentName;
    @ApiModelProperty("组件键名")
    @NotEmpty(message = "组件键名不能为空")
    private String componentKeyName;
    @ApiModelProperty("显示时效")
    @NotEmpty(message = "显示时效不能为空")
    private String showTimeType;
    @ApiModelProperty("开始时间--关联时间组件")
    private String startTimeKey;
    @ApiModelProperty("结束时间--关联时间组件")
    private String endTimeKey;
    @ApiModelProperty("流程节点集合")
    private List<String> flowNodeList;
    @ApiModelProperty("地图显示名称")
    @NotEmpty(message = "地图显示名称不能为空")
    private String mapShowName;
    @ApiModelProperty("图标类型")
    @NotEmpty(message = "图标类型不能为空")
    private String iconType;
    @ApiModelProperty("上传图标--存图片")
    @NotEmpty(message = "请上传图标")
    private BaseAttachmentBean iconUpload;
    @ApiModelProperty("设为可视化大屏专栏")
    private boolean screenColumnOpen;
    @ApiModelProperty("启用电子围栏报警事件")
    private boolean railAlarmOpen;
    @ApiModelProperty("风险区域组件key")
    private String riskAreaKey;

    @ApiModelProperty("流程是否已部署")
    private boolean deploy;

    private String bizTypeName;

    @ApiModelProperty("大屏配置")
    private WorkFlowScreenConfigBean screenConfig;

    @ApiModelProperty("报警配置")
    private WorkFlowRailAlarmConfigBean railAlarmConfig;

    private List<WorkFlowTask> taskList;

    @ApiModelProperty("是否开启位置服务")
    private Boolean locationServiceOpen;

    @ApiModelProperty("是否启用地图快照 0否 1是")
    private Integer snapshotOpen;

    @ApiModelProperty("是否启用电子签名  0否 1是")
    private Integer signatureOpen;

}
